package com.atguigu.gmall.product;


import com.atguigu.gmall.common.config.minio.annotation.EnableMinio;
import com.atguigu.gmall.common.config.swagger.Swagger2Config;
import com.atguigu.gmall.common.config.swagger.annotation.EnableAppSwagger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author lfy
 * @Description SpringBoot启动默认只扫描主配置类所在的包及其子包下面的所有组件
 * 当前：com.atguigu.gmall.product
 * 抽取：com.atguigu.gmall.common.config.minio 这个扫描不到
 * @create 2022-10-29 14:22
 */
//@ComponentScan({"com.atguigu.gmall.common.config","com.atguigu.gmall.product"})
@EnableTransactionManagement
@EnableAppSwagger
@EnableMinio
@MapperScan(basePackages = "com.atguigu.gmall.product.mapper")
@SpringCloudApplication
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);
    }
}
